package com.caregiver.watch.business.data.model.dto;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;

/**
 * @Description: 三方返回结果通用模型
 * @Author 疆戟
 * @Date 2025/10/12 17:05
 * @Version 1.0
 */
@Data
public class ApiResult<T> {

    @JSONField(name = "ReturnCode")
    private int returnCode;

    private T data;

    @JSONField(name = "message")
    private String message;

    public boolean isSuccess() {
        return returnCode == 0;
    }
}
